﻿using LiveCharts;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Bind.ViewModel
{
    public class DemoViewModel : Notify
    {

        string _Order = "订单";
        /// <summary>
        /// 订单
        /// </summary>
        public string Order
        {
            get { return _Order; }
            set { _Order = value; RaisePropertyChanged("Order"); }
        }
        double _Percent = 0;
        /// <summary>
        /// 进度条 Like 0-100
        /// </summary>
        public double Percent
        {
            get { return _Percent; }
            set { _Percent = value; RaisePropertyChanged("Percent"); }
        }
        string _Count = "0/0";
        /// <summary>
        /// 生产进度 Like 10/100
        /// </summary>
        public string Count
        {
            get { return _Count; }
            set { _Count = value; RaisePropertyChanged("Count"); }
        }
        private ChartValues<int> _Pass = new ChartValues<int> { 0 };
        /// <summary>
        /// 饼图Pass
        /// </summary>
        public ChartValues<int> Pass
        { get => _Pass; set { _Pass = value; RaisePropertyChanged("Pass"); } }

        private ChartValues<int> _Fail = new ChartValues<int> { 0 };
        /// <summary>
        /// 饼图Fail
        /// </summary>
        public ChartValues<int> Fail
        { get => _Fail; set { _Fail = value; RaisePropertyChanged("Fail"); } }

        string _BarCode = "条码";
        /// <summary>
        /// 条码
        /// </summary>
        public string BarCode
        {
            get { return _BarCode; }
            set { _BarCode = value; RaisePropertyChanged("BarCode"); }
        }

        string _State = "等待扫码";
        /// <summary>
        /// 提示状态
        /// </summary>
        public string State
        {
            get { return _State; }
            set { _State = value; RaisePropertyChanged("State"); }
        }

        SolidColorBrush _StateColor = Brushes.Gray;
        /// <summary>
        /// 状态颜色
        /// </summary>
        public SolidColorBrush StateColor
        {
            get { return _StateColor; }
            set { _StateColor = value; RaisePropertyChanged("StateColor"); }
        }

    }
}
